#coding:utf-8
__author__ = 'han'
import os
def searchword(WORD):
    for allPath in os.listdir(os.curdir):
        if os.path.isfile(allPath):
            fileName=allPath
            fileNameSplit=fileName.split('.')
            if WORD in fileNameSplit:
                suiteFile=os.path.abspath(fileName)
                print suiteFile.replace(WORD,'\033[33;1m{0}\033[0m'.format(WORD))
        else:
            os.chdir(allPath)
            searchword(WORD)
            os.chdir(os.pardir)
searchword('xinxibiao')
